<script setup>
import { onMounted, ref, reactive } from 'vue';
import axios from 'axios';
const tableData = ref([]);
const queryInfo = ref({
    id:'',
    consult_id:'',
    create_time:'',
    user_name:'',
    content:'',
    reply:'',
    reply_time:''
})
onMounted(() => {
    getList();
})
const getList = () => {
    axios.get('/questionReply/selectAll',{
        params:queryInfo.value
    }).then((resp)=>{
        let result =resp.data;
        if(result.code==1){
            total.value=result.data.total;
            tableData.value=result.data;
        }
    }).catch(()=>{
        ElMessage.error('获取咨询回复列表失败')
    })
}
const total=ref(0);
</script>
<template>
    <el-table :data="tableData" stripe style="width: 100%">
        <el-table-column prop="consult_id" label="咨询用户id"></el-table-column>
        <el-table-column prop="user_name" label="咨询用户名"></el-table-column>
        <el-table-column prop="create_time" label="咨询问题提出时间"></el-table-column>
        <el-table-column prop="content" label="问题内容"></el-table-column>
        <el-table-column prop="reply" label="回复内容"></el-table-column>
        <el-table-column prop="reply_time" label="回复时间"></el-table-column>
    </el-table>
</template>


<style scoped>

</style>